<div class="filmes view">
<h2><?php  echo __('Filme'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($filme['Filme']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Tipo'); ?></dt>
		<dd>
			<?php echo $this->Html->link($filme['Tipo']['id'], array('controller' => 'tipos', 'action' => 'view', $filme['Tipo']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Titulo'); ?></dt>
		<dd>
			<?php echo h($filme['Filme']['titulo']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Titulo Original'); ?></dt>
		<dd>
			<?php echo h($filme['Filme']['titulo_original']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Filmescol'); ?></dt>
		<dd>
			<?php echo h($filme['Filme']['filmescol']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Ano'); ?></dt>
		<dd>
			<?php echo h($filme['Filme']['ano']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Data'); ?></dt>
		<dd>
			<?php echo h($filme['Filme']['data']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Diretore'); ?></dt>
		<dd>
			<?php echo $this->Html->link($filme['Diretore']['id'], array('controller' => 'diretores', 'action' => 'view', $filme['Diretore']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Nascionalidade'); ?></dt>
		<dd>
			<?php echo $this->Html->link($filme['Nascionalidade']['id'], array('controller' => 'nascionalidades', 'action' => 'view', $filme['Nascionalidade']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Atore'); ?></dt>
		<dd>
			<?php echo $this->Html->link($filme['Atore']['id'], array('controller' => 'atores', 'action' => 'view', $filme['Atore']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Critica'); ?></dt>
		<dd>
			<?php echo h($filme['Filme']['critica']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Sinopse'); ?></dt>
		<dd>
			<?php echo h($filme['Filme']['sinopse']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Duracao'); ?></dt>
		<dd>
			<?php echo h($filme['Filme']['duracao']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Filme'), array('action' => 'edit', $filme['Filme']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Filme'), array('action' => 'delete', $filme['Filme']['id']), null, __('Are you sure you want to delete # %s?', $filme['Filme']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Filmes'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Filme'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Tipos'), array('controller' => 'tipos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Tipo'), array('controller' => 'tipos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Diretores'), array('controller' => 'diretores', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Diretore'), array('controller' => 'diretores', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Nascionalidades'), array('controller' => 'nascionalidades', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Nascionalidade'), array('controller' => 'nascionalidades', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Atores'), array('controller' => 'atores', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Atore'), array('controller' => 'atores', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Criticas'), array('controller' => 'criticas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Critica'), array('controller' => 'criticas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Midias'), array('controller' => 'midias', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Midia'), array('controller' => 'midias', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Categorias'), array('controller' => 'categorias', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Categoria'), array('controller' => 'categorias', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Criticas'); ?></h3>
	<?php if (!empty($filme['Critica'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Valor'); ?></th>
		<th><?php echo __('Filme Id'); ?></th>
		<th><?php echo __('Usuario Id'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($filme['Critica'] as $critica): ?>
		<tr>
			<td><?php echo $critica['id']; ?></td>
			<td><?php echo $critica['valor']; ?></td>
			<td><?php echo $critica['filme_id']; ?></td>
			<td><?php echo $critica['usuario_id']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'criticas', 'action' => 'view', $critica['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'criticas', 'action' => 'edit', $critica['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'criticas', 'action' => 'delete', $critica['id']), null, __('Are you sure you want to delete # %s?', $critica['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Critica'), array('controller' => 'criticas', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Midias'); ?></h3>
	<?php if (!empty($filme['Midia'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Filme Id'); ?></th>
		<th><?php echo __('Codigo'); ?></th>
		<th><?php echo __('Disponivel'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($filme['Midia'] as $midia): ?>
		<tr>
			<td><?php echo $midia['id']; ?></td>
			<td><?php echo $midia['filme_id']; ?></td>
			<td><?php echo $midia['codigo']; ?></td>
			<td><?php echo $midia['disponivel']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'midias', 'action' => 'view', $midia['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'midias', 'action' => 'edit', $midia['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'midias', 'action' => 'delete', $midia['id']), null, __('Are you sure you want to delete # %s?', $midia['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Midia'), array('controller' => 'midias', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Categorias'); ?></h3>
	<?php if (!empty($filme['Categoria'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($filme['Categoria'] as $categoria): ?>
		<tr>
			<td><?php echo $categoria['id']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'categorias', 'action' => 'view', $categoria['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'categorias', 'action' => 'edit', $categoria['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'categorias', 'action' => 'delete', $categoria['id']), null, __('Are you sure you want to delete # %s?', $categoria['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Categoria'), array('controller' => 'categorias', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
